<template>
  <div class="main-home">
    <header class="main-header">
      <div class="header-content">
        <h1>影视项目管理平台</h1>
        <p>高效管理影视项目、剧本、预算与团队协作，一站式解决方案</p>
        <el-button type="primary" size="large" class="start-btn" @click="toLogin">立即体验</el-button>
      </div>
    </header>
    <section class="features">
      <div class="feature-item">
        <el-icon><Document /></el-icon>
        <h3>项目管理</h3>
        <p>集中管理所有影视项目，支持多层级文件夹分类，项目进度一目了然。</p>
      </div>
      <div class="feature-item">
        <el-icon><Folder /></el-icon>
        <h3>剧本与资料</h3>
        <p>剧本、分镜、资料集中存储，随时查阅与协作编辑。</p>
      </div>
      <div class="feature-item">
        <el-icon><el-icon-edit /></el-icon>
        <h3>预算工具</h3>
        <p>内置预算表工具，自动统计预算项，助力成本把控。</p>
      </div>
      <div class="feature-item">
        <el-icon><el-icon-delete /></el-icon>
        <h3>安全可靠</h3>
        <p>数据多重备份，权限分级，保障项目信息安全。</p>
      </div>
    </section>
    <section class="about">
      <h2>关于平台</h2>
      <p>
        本平台专为影视行业打造，集项目管理、资料归档、预算统计于一体，提升团队协作效率，助力影视项目高效落地。
      </p>
    </section>
    <footer class="main-footer">
      <span>© 2025 影视项目管理平台 | StoryFilmPlatform</span>
    </footer>
  </div>
</template>

<script setup>
import { Document, Folder, Edit as ElIconEdit, Delete as ElIconDelete } from '@element-plus/icons-vue'
import {useRouter} from "vue-router";
const route = useRouter()

// 跳转登录
const toLogin = () => {
  route.push('/login')
}
</script>

<style scoped>
.main-home {
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Arial', sans-serif;
  background: #f7f8fa;
  min-height: 100vh;
}
.main-header {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  padding: 64px 0 48px 0;
  text-align: center;
}
.header-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.header-content p {
  font-size: 1.3rem;
  margin-bottom: 32px;
}
.start-btn {
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 16px #6366f144;
}
.features {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 48px 0 32px 0;
  flex-wrap: wrap;
}
.feature-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #6366f122;
  padding: 32px 28px;
  width: 260px;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px #6366f144;
  transform: translateY(-2px) scale(1.03);
}
.feature-item .el-icon {
  font-size: 38px;
  color: #6366f1;
  margin-bottom: 12px;
}
.feature-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 12px 0 8px 0;
}
.feature-item p {
  color: #888;
  font-size: 1rem;
}
.about {
  max-width: 800px;
  margin: 0 auto 48px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #6366f122;
  padding: 36px 40px;
  text-align: center;
}
.about h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about p {
  color: #666;
  font-size: 1.1rem;
}
.main-footer {
  text-align: center;
  color: #bbb;
  font-size: 15px;
  padding: 24px 0 16px 0;
}
</style>